<script type="text/javascript" src="/scripts/utilities.js"></script>
		<form enctype="multipart/form-data" id="messageform" name="messageform" method="POST" action="/album/photos/add-photos-toalbum/<?php echo $ctx->photos.'/'.$ctx->photo_diffid.'/'.$ctx->type; ?> ">
		<div class="PhoVidCrtForm">
		<div class="pad_t8">
		<label>&nbsp;</label>
		<select style="width:350px;" id="albumName" name="albumName">
				<option value="0" >select album</option>
				<?php 
				$i=0;
				while($i<count($ctx->getAlbums))
				{ ?>
				<option value="<?php echo $ctx->getAlbums[$i]['album_id']; ?>"><?php echo $ctx->getAlbums[$i]['title']; ?></option>  
				
				<?php $i++; }?>
		</select>
		<div class="clear"></div>
		
		</div>
		<div class="pad_t8">
		<label>&nbsp;</label>
		<a class="Button" href="javascript:void(0);" onclick="create(document.messageform);"><span>Create</span></a>
		<div class="clear"></div>
		</div>
		</div>
	</form>
<script>
//<![CDATA[

function create(frm)
{
	//var result = false;
	//alert(frm.albumName.value);return false;
	if(frm.albumName.value == 0)
	{
	alert("please select one album");return false;
	}
	$('#messageform').submit();
	
	//alert(result);
	//return result;
}

//]]>
</script>
